﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example05.aspx.cs" Inherits="Chapter26.Example05" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 26-5 使用 Location 对象的 assign 方法进行导航</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
</head>
<body>
    <button id="pressme">Press Me</button>
    <script>
        document.getElementById("pressme").onclick = function () {
            document.location.assign("http://apress.com ");
        }
    </script>
</body>
</html>
